<?php

define('SMIT_START_INIT', microtime(true));
define('SMIT_MEM_INIT', (function_exists('memory_get_usage') ? memory_get_usage() : 0));

//----------------------------------------------------------
//	SMIT_PATH - Installation directory [AUTO]
//	SMIT_SYS_PATH - Sources Path [CHANGABLE]
//	SMIT_CP_PATH - Dashboard Path [CHANGABLE]
//	EXT - PHP File extension [AUTO]
//----------------------------------------------------------
define('SMIT_PATH', str_replace('\\', '/', dirname(__FILE__)) . '/');
define('SMIT_SYS_PATH', SMIT_PATH . 'sources/');
define('SMIT_CP', 'admincp');
define('SMIT_ASSETS_PATH', SMIT_PATH . 'assets/');
define('EXT', '.' . pathinfo(__FILE__, PATHINFO_EXTENSION));

//----------------------------------------------------------
// Define Smit Constants
//----------------------------------------------------------
define('E_SMIT', 1);
define('E_MISSING_FILE', 2);
define('E_DATABASE', 3);
define('E_CLASS_MISMATCH', 4);
define('E_OUTPUT', 5);
define('E_CACHE', 6);
// ---------------------------------------------------------
define('DEBUG_SQL', 1);
define('DEBUG_GENERAL', 2);
define('DEBUG_NOTICE', 3);
define('DEBUG_QUERY', 4);

define('SMIT_DEBUG', 1);
define('SMIT_DEBUG_LOG', 1);
define('SMIT_HUMAN_VERSION', 'Matterhorn PF');
define('SMIT_BUILD', 24109);

if(function_exists('set_magic_quotes_runtime')) set_magic_quotes_runtime(0);

if(!SMIT_DEBUG)
{
	//error_reporting  (E_ERROR | E_WARNING | E_PARSE);
	error_reporting  (E_ALL);
}
else
{
	error_reporting(E_ALL|E_NOTICE);
}
require_once SMIT_SYS_PATH . 'core/SmitBase' . EXT;

$Smit = SmitBase::getInstance();

//set_error_handler(array($Smit, 'php_error'));
if(!defined('RUN_GENERIC'))
{
	$Smit->init();
}
/*
var_dump($Smit->db->config);

$Smit->parseManifest('forum');*/
?>